<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Believe后台管理</title>
    <link rel="stylesheet" href="/resource/layui/css/layui.css">
    <link rel="stylesheet" href="/resource/css/common.css">
</head>

<body class="layui-layout-body ">
<!--<div id="app">-->
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo" style="font-size: 20px; color: #CAE1FF;"><span class="iconfont-ali icon-B" style="font-size: 35px"></span></div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a id="userName">
                    <span class="iconfont-ali icon-B" style="font-size: 20px"></span>
                    <cite class="layui-hide-xs">${manager.managerName }</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd>
                        <a id="resetPass">修改密码</a>
                    </dd>
                    <dd>
                        <a id="logout">安全退出</a>
                    </dd>
                </dl>
            </li>

        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="/manager/mainredirect.do" target="main">主页</a></li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="/manager/messageredirect.do" target="main">消息管理</a>
                </li>
                <li class="layui-nav-item">
                    <a>文章管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/manager/essayredirect.do" target="main">全部</a></dd>
                        <dd><a href="/manager/auditingRedirect.do" target="main">已审核</a></dd>
                        <dd><a href="/manager/UnAuditingRedirect.do" target="main">未审核</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a>用户管理</a>
                    <dl class="layui-nav-child">
                        <dd> <a  href="/manager/userredirect.do" target="main">用户文章查看</a></dd>
                        <dd><a href="/manager/userInformationRedirect.do" target="main">用户信息查看</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <iframe src="/manager/mainredirect.do" name="main" width="100%"
                height="99%" frameborder="0"></iframe>
    </div>

</div>
<!--</div>-->

<script src="/resource/layui/layui.js"></script>
<script src="/resource/js/jquery-3.4.0.min.js"></script>
<script src="/resource/js/managerIndex.js"></script>
<script src="/resource/js/common.js"></script>

<script>
    //检测session是否过期  或者未登录
    layui.use('layer', function () {
        $(document).ready(function () {
            var se = "${manager}";
            if (se == "") {
                layer.alert('登录过期或未登录，请登录', function (index) {
                    window.location.href = "/managerLogin.html";
                    layer.close(index);
                });
            }
        });
    });
</script>
</body>

</html>